#include <stdio.h>
#include <string.h>
#include <assert.h>
// memcmp 
int main()
{   
    int arr1[] = {1,2,3,4,5};
    int arr2[] = {1,2,3,6,7};
    int ret1 = memcmp(arr1,arr2,8);
    printf("ret1 = %d \n", ret1);

    int ret2 = memcmp(arr1, arr2, 12);
    printf("ret2 = %d \n", ret2); // 输出0

    int ret3 = memcmp(arr1, arr2, 16);
    printf("ret3 = %d \n", ret3);   // 输出-1
    return 0; // 返回 0
}
